package com.ekuaitu.kuaitu.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.ekuaitu.kuaitu.bean.MyInvoiceBean;

import java.util.List;

/**
 * Created by CaoJing on 2016/10/5.
 */
public class MyInvoiceLvAdapter extends BaseAdapter {
    private List<MyInvoiceBean> mlist;
    private Context mContext;

    public MyInvoiceLvAdapter(List<MyInvoiceBean> list, Context context) {
        this.mlist = list;
        this.mContext = context;
    }

    @Override
    public int getCount() {
        return mlist != null ? mlist.size() : 0;
    }

    @Override
    public Object getItem(int i) {
        return mlist != null ? mlist.get(i) : null;
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return convertView ;
    }


}

